Skip to content

Disable param updating experiments when design matrix - #14209

Draft
tbwiik wants to merge 1 commit into
equinor:mainfrom
tbwiik:disable-param-update-models-on-matrix
Draft

Disable param updating experiments when design matrix#14209
tbwiik wants to merge 1 commit into
equinor:mainfrom
tbwiik:disable-param-update-models-on-matrix

Conversation

@tbwiik

@tbwiik tbwiik commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Issue
Resolves #14139

Approach
When design matrix is set, parameters are explicit and it should not be possible to run experiment types that updates parameters.
For this case, the parameter updating experiment types are now disabled in the main experiment drop down menu.

Original state:
Screenshot 2026-08-19 at 09 34 29

State after disabling updating experiment types when design matrix present:
Screenshot 2026-08-19 at 09 36 20

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When screenshots are changed: Review screenshot-PR in ert-testdata,
    merge screenshot-PR in ert-testdata before merging this PR.
  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

@codecov-commenter

codecov-commenter commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.95%. Comparing base (47757c5) to head (efb4669).
⚠️ Report is 16 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14209      +/-   ##
==========================================
+ Coverage   91.93%   91.95%   +0.01%     
==========================================
  Files         482      484       +2     
  Lines       33516    33647     +131     
==========================================
+ Hits        30813    30940     +127     
- Misses       2703     2707       +4     
Flag Coverage Δ
cli-tests 36.41% <0.00%> (-0.06%) ⬇️
fuzz 44.38% <0.00%> (-0.08%) ⬇️
gui-tests 58.69% <100.00%> (-0.15%) ⬇️
performance-and-unit-tests 80.97% <100.00%> (+0.07%) ⬆️
test 45.96% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/ert/gui/experiments/experiment_panel.py 95.26% <100.00%> (+0.06%) ⬆️

... and 13 files with indirect coverage changes

@tbwiik tbwiik self-assigned this Aug 19, 2026
@tbwiik tbwiik added the release-notes:improvement Automatically categorise as improvement in release notes label Aug 19, 2026
@tbwiik

tbwiik commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Tooltip on disable leaks abstraction levels. Must handle that while still being informative. do in other issue.
Also, this disable functionality is not tested, and a bit unsure how I can write such a test, so need help with that

@tbwiik
tbwiik force-pushed the disable-param-update-models-on-matrix branch 2 times, most recently from c680215 to 657d6ea Compare August 19, 2026 09:56
@tbwiik tbwiik changed the title Disable experiment models when unvalid Disable param updating experiments when design matrix Aug 19, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing tbwiik:disable-param-update-models-on-matrix (657d6ea) with main (a072035)

Open in CodSpeed

@tbwiik
tbwiik force-pushed the disable-param-update-models-on-matrix branch from 6dee863 to 657d6ea Compare August 19, 2026 13:06
@tbwiik
tbwiik force-pushed the disable-param-update-models-on-matrix branch from 657d6ea to efb4669 Compare August 19, 2026 13:25
Comment on lines +206 to +209
merged_parameters = config.parameter_configurations_with_design_matrix
updatable_parameters_exist = any(
p.update_strategy is not None for p in merged_parameters
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be valuable to combine these two vars here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:improvement Automatically categorise as improvement in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update run models are available even when there are no parameters in the model

2 participants